<?

class controller {
       
    protected $_model;
    protected $_controller;
    protected $_view;
    protected $_module;
    protected $_action;

    function __construct($module, $action){
        
        //Assign the variables brought in
        $this->_module = $module;
        $this->_action = $action;
        
        //Creates a new instance of the 
        $model = $module."Model";
        $view = $module."View";
        
        $this->_model = new $model();
        $this->_view = new $View;
                
    }

    function __destruct(){
        $this->_template->render();
    }
    
    function invoke(){
        $_action();
    }
}


?>

